package com.example.lastwork.service;


import com.example.lastwork.common.service.LogicService;
import com.example.lastwork.dao.LineItemDao;
import com.example.lastwork.entity.LineItem;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LineItemService extends LogicService<LineItemDao, LineItem, Long> {
    public LineItemService(@Autowired LineItemDao dao){
        super(dao);
    }

    public List<LineItem> getLineItemsByOrdersId(Long ordersId){
        return getDAO().getLineItemsByOrdersId(ordersId);
    }
}
